﻿using System;
using UnityEngine;
using XUtliPoolLib;

namespace XMainClient
{
	// Token: 0x020010D3 RID: 4307
	internal class Process_PtcG2C_CorrectPosition
	{
		// Token: 0x0600D806 RID: 55302 RVA: 0x00328EC4 File Offset: 0x003270C4
		public static void Process(PtcG2C_CorrectPosition roPtc)
		{
			XEntity entityConsiderDeath = XSingleton<XEntityMgr>.singleton.GetEntityConsiderDeath(roPtc.Data.uid);
			if (entityConsiderDeath != null)
			{
				Vector3 pos = new Vector3((float)roPtc.Data.pos_x / 100f, (float)roPtc.Data.pos_y / 100f, (float)roPtc.Data.pos_z / 100f);
				//pos..ctor((float)roPtc.Data.pos_x / 100f, (float)roPtc.Data.pos_y / 100f, (float)roPtc.Data.pos_z / 100f);
				Vector3 face = XSingleton<XCommon>.singleton.FloatToAngle((float)roPtc.Data.face / 10f);
				entityConsiderDeath.CorrectMe(pos, face, false, roPtc.Data.bTransfer);
			}
		}
	}
}
